package com.markyao.service.redis;

public class UtilsKeys {
    public final static String SERVER_REGISTRY_KEY="SERVER:REGISTRY:";
    public final static String SERVICE_REGISTRY_KEY="SERVICE:REGISTRY:";
    public final static String REFRENCE_REGISTRY_KEY="REFRENCE:REGISTRY:";
    public final static String APPNAME="APPNAME";
    public final static String REMOTEHOST="remoteHost";
    public final static String URL="URL";
    public final static String WEIGHT="WEIGHT";

    public final static String SERVICE_SELECTED_KEY="SERVICE:SELECTED:KEY:";
    public final static String SERVICE_SELECTED_IDX_KEY="SERVICE:SELECTED:IDX:";

    public final static String EXCPTION_URL="EXCPTION:URL:";
    public final static String ERROR_URL="ERROR:URL:";
    public final static String PROVIDERS_KEY="PROVIDERS_KEY:";

    public final static String HEARTBEAT = "HEARTBEAT";
    public final static String URL_MAP_KEY="URLMAP:";
    public final static String CONNECT_KEY="CONNECT:KEY:";
    public final static String KILL_CONNECT_KEY="KILLCONNECT:KEY:";
    public final static String RE_CONNECT_KEY="RECONNECT:KEY:";

    public static final String CONF="conf";
    public static final String SERVERPORT="serverport";
    public static final String CONAME="coname";

    public static String buildHeartBeatKey(String appName,String urls){
        return HEARTBEAT + "-" + appName + "=>" + urls;
    }

}
